<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<!--links-->
<div id="rightpage" >
<p>常用链接</p>
<?php
$links = Links::model()->findAll();
echo '<ul class="rlink">';
foreach($links as $link)
{
    echo '<li class="rlink" ><a class="rlink" target="_blank" href="'.$link->url.'" style="text-decoration: none;">'.$link->title.'</a></li>';
}
echo '</ul>';
?>
</div>
<div class="container" id="page">

	<div id="header">
		<div id="logo"><?php echo '<a style="text-decoration: none;color:#70a19f;font-family:bodoni mt black;" href="http://ts.taobao.ali.com:8090/testsupply/index.php" >'.CHtml::encode(Yii::app()->name).'</a>'; ?></div>
		<!--<div id="logo"><?php //echo '<a style="text-decoration: none;" href="http://ts.taobao.ali.com:8090/testsupply/index.php" ><img src="images/ts1.png"   /></a>'; ?></div>-->
	</div><!-- header -->

	<div id="mainmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'首页', 'url'=>array('/')),
				//array('label'=>'题库', 'url'=>array('/questions/index')),
				array('label'=>'机器', 'url'=>array('/machine/index')),
				//array('label'=>'团队', 'url'=>array('/workgroup/index')),
				//array('label'=>'操作', 'url'=>array('/handle/index')),
				array('label'=>'用户', 'url'=>array('/users/index')),
				array('label'=>'关于', 'url'=>array('/site/page', 'view'=>'about')),
				array('label'=>'联系方式', 'url'=>array('/site/contact')),
				array('label'=>'登录', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'登出 ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>
	<?php echo $content; ?>
	<div class="clear"></div>

	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by Linhan. All Rights Reserved.    <?php echo Yii::powered(); ?>
	</div><!-- footer -->
</div>
</div><!-- page -->
</body>
</html>
